/**
 * Created by XPL on 2017/4/17.
 */
angular.module('app').controller('testCtrl', ['$scope', 'htmlToTrueFilter', 'limitToFilter',
    function ($scope, htmlToTrueFilter, limitToFilter) {
    $scope.title = '点击展开';
    $scope.text = '这里是内部的内容。';
    $scope.fiterData = limitToFilter("123",1);
    $scope.clickfn = function(param, id){
        console.log("clickfn:"+param+" "+id);
    }
    $scope.allData = {
        title: $scope.title,
        text: $scope.text,
        clickfn: $scope.clickfn
    };
}]);
/* <expander class='expander' aa="xpl" bb="clickfn()" cc="title" dir="this is dd" >
 {{text}}
 </expander>
 angular.module('app').directive('expander', [function(){
 return {
 restrict: 'AE',
 scope: {
    aa : '@',//字符串
    bb : '&',//回调函数
    cc : '=',//变量
    dd : '@dir',//转义接口名
 },
 transclude: true,
 link: function(scope, element, attrs){
 scope.isShow = true;
 },
 replace: true,
 template: '<div>数据：<div ng-bind="aa"></div><button ng-click="bb()"></button>{{dd}},{{cc}}</div>'
 };
 }]);*/
